package com.kgc.ljp.server.dao;

import com.kgc.ljp.server.entity.HeroClass;
import com.kgc.ljp.server.entity.KunClass;
import com.kgc.ljp.server.entity.User;
import com.kgc.ljp.server.entity.WuJingPoint;

import java.util.List;
import java.util.Map;

public interface UserPlayDao {
    /**
     * 注册
     * @param user
     * @return
     */
    boolean regiest(User user);

    /**
     * 玩无尽
     * @param hc
     * @param kunList
     * @param user
     * @return
     */
    int playWuJinGame(HeroClass hc,List<KunClass> kunList,User user);

    /**
     * 玩剧情
     * @param hc
     * @param kc
     * @param user
     * @return
     */
    boolean playJuQingGame(HeroClass hc,KunClass kc,User user);

    /**
     * 买卡
     * @param userName
     * @return
     */
    HeroClass buyCard(String userName);

    /**
     * 删除卡片
     * @param userName
     * @param cardName
     * @return
     */
    User deleteCard(String userName,int cardName);

    /**
     * 充值
     * @param userName
     * @param money
     */
    void recharge(String userName,int money);

    /**
     * 修改卡片
     * @param userName
     * @param heroClass
     * @return
     */
    User updateCard(String userName,HeroClass heroClass);

    /**
     * 返回无尽
     * @return
     */
    WuJingPoint selectWuJin();

    /**
     * 返回地图
     * @return
     */
    Map selectJuQing();

    /**
     * 返回金额
     * @param userName
     * @return
     */
    int selectMoney(String userName);
}
